<div class="indexLinks"><a href="<?php echo $this->url(array('module'=>'prof','controller'=>'qcm','action'=>'add'),'default',true)?>">Add a quiz</a></div>
<?php foreach ($this->entries as $ent) :?>
<div class="entry">
	<div class="head">
		<div class="left">Title : <?php echo ucfirst($ent->titre)?></div>
		<div class="right"><?php echo count($ent->questions)?> questions</div>
	</div>
	<div class="bottom"><?php echo $ent->description?></div>
	<a href="<?php echo $this->url(array('module'=>'prof','controller'=>'qcm','action'=>'view','qcm'=>$ent->id),'default',true)?>"></a>
</div>
<?php endforeach;?>
<?php echo $this->paginationControl($this->entries, 'Elastic', 'pagination_controll.phtml')?>

<?php $this->headScript()->appendScript('$(document).ready(function(){
	$(".entry").click(function(){
		window.location=$(this).find("a").attr("href"); return false;
	});
	$(".entry").hover(function(){
		$(this).css("cursor","pointer");
		$(this).find("a").css("color","#ff8000");
	}, function(){
		$(this).css("cursor","auto");
		$(this).find("a").css("color","#7dcd27");
	});
});')?>